package org.cmcc.pcap.voltePcapParse.pcap;

/**
 * Pcap 捕获的数据帧头：以太网帧，14 个字节，可以不做处理，直接跳过
 * @author starfish
 *
 */
public class EthernetHeader {
	
	/**
	 * 目的 MAC 地址：6 byte
	 */
	private String desMac;
	
	/**
	 * 源 MAC 地址：6 byte
	 */
	private String srcMac;
	
	/**
	 * 数据帧类型:2 字节
	 */
	private String frameType;

	public String getDesMac() {
		return desMac;
	}

	public void setDesMac(String desMac) {
		this.desMac = desMac;
	}

	public String getSrcMac() {
		return srcMac;
	}

	public void setSrcMac(String srcMac) {
		this.srcMac = srcMac;
	}

	public String getFrameType() {
		return frameType;
	}

	public void setFrameType(String frameType) {
		this.frameType = frameType;
	}
	
	public EthernetHeader() {}
	
	@Override
	public String toString() {
		return "<b>Ethernet II,Src:</b>" + srcMac + ",<b> Dst:</b>" + desMac  
				+ "<br>&nbsp;&nbsp;<b>Source:</b>" + srcMac
				+ "<br>&nbsp;&nbsp;<b>Destination:</b>" + desMac
				+ "<br>&nbsp;&nbsp;<b>Type:</b>" + frameType;
	}
	
}
